<html xmlns:th="http://www.thymeleaf.org"  
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"    
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">    
<html>
<head th:include="common/common::header">
    <meta charset="UTF-8">
    <style type="text/css">
      #index {
            justify-content: space-between;
            flex-wrap: wrap;
            opacity: 0;
        }
        .index-l {
            width: 100%;
            margin-top: 0.5%;
            margin-left: 29px;
        }
    </style>
</head>

<body>
		 <div class="form-item" style="margin-top: 0.5%">
			       <label for="" style=" padding-left: 28%;" class="label-top" >登录用户名：</label>
			       <input  type="text" class="easyui-textbox" id="log_username"/>
		      		<a onclick="searchlog()"   href="javascript:void(0)" class="easyui-linkbutton" data-options="plain:true">搜索</a>
		  </div>
		<div class="index-l" id="logToolbar">
	      <div>
       		   <shiro:hasPermission name="sys:log:view">
       		  <a href="javascript:void(0)" onclick="opendialog({title:'登录日志-查看',width:'50%',height:'70%',checkSelect:true,gridId:'logTable',url:'system/log/view_01',onClose:searchlog})"  class="easyui-linkbutton error" id="reedit" data-options="iconCls:'fa fa-eye'">查看</a>
       		  </shiro:hasPermission>
       		  <a href="javascript:void(0)" onclick="searchlog()" id="rebreak" class="easyui-linkbutton success" data-options="iconCls:'fa fa-refresh'">刷新</a>
	      </div>
	      </div>
	      <div style="opacity: 1;width:100%;min-height:780px;margin-top: 0.5%">
	        <table id="logTable" style="opacity: 1;width:100%;height:780px;margin-top: 2%" class="easyui-datagrid"  th:attr="data-options=${dataGrid }">
			</table>
	</div>
<script type="text/javascript">
function searchlog(){
		AM.gridSearch({
		gridId:'logTable',
		data:[
			  {field:'username',type:'textbox',id:'log_username'}
		     ]
	});
}
</script>
</body>
</html>